FROM golang:1.16
WORKDIR $GOPATH/src
RUN go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
COPY . $GOPATH/src
EXPOSE 8080

RUN go build main.go
ENTRYPOINT ["./main"]
